package com.itcat.service.impl;

import com.itcat.api.mysql.OmsCompanyAddressApi;
import com.itcat.mysql.pojo.OmsCompanyAddress;
import com.itcat.service.OmsCompanyAddressService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

@Component
@Service
public class OmsCompanyAddressServiceImpl implements OmsCompanyAddressService {
    @DubboReference
    private OmsCompanyAddressApi omsCompanyAddressApi;

    /**
     * 获取所有收获地址
     *
     * @return
     */
    public List<OmsCompanyAddress> getAddress() {
        List<OmsCompanyAddress>  omsCompanyAddress = omsCompanyAddressApi.getAddress();
        return omsCompanyAddress;
    }
}
